package com.itheima.reggie.service;

import com.itheima.reggie.common.ResultInfo;
import com.itheima.reggie.domain.Category;

import java.util.List;

public interface CategoryService {
    //查询所有
    List<Category> findAll();

    //新增
    void add(Category category);

    //修改
    void update(Category category);

    //删除
    ResultInfo deleteById(Long id);

    //回显菜品分类
    List<Category>  findByType(Integer type);
}
